package com.lxk.pojo;

import java.util.ArrayList;
import java.util.List;

public class DesignerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DesignerExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDesignerIdIsNull() {
            addCriterion("designer_id is null");
            return (Criteria) this;
        }

        public Criteria andDesignerIdIsNotNull() {
            addCriterion("designer_id is not null");
            return (Criteria) this;
        }

        public Criteria andDesignerIdEqualTo(Integer value) {
            addCriterion("designer_id =", value, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdNotEqualTo(Integer value) {
            addCriterion("designer_id <>", value, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdGreaterThan(Integer value) {
            addCriterion("designer_id >", value, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("designer_id >=", value, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdLessThan(Integer value) {
            addCriterion("designer_id <", value, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdLessThanOrEqualTo(Integer value) {
            addCriterion("designer_id <=", value, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdIn(List<Integer> values) {
            addCriterion("designer_id in", values, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdNotIn(List<Integer> values) {
            addCriterion("designer_id not in", values, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdBetween(Integer value1, Integer value2) {
            addCriterion("designer_id between", value1, value2, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("designer_id not between", value1, value2, "designerId");
            return (Criteria) this;
        }

        public Criteria andDesignerNameIsNull() {
            addCriterion("designer_name is null");
            return (Criteria) this;
        }

        public Criteria andDesignerNameIsNotNull() {
            addCriterion("designer_name is not null");
            return (Criteria) this;
        }

        public Criteria andDesignerNameEqualTo(String value) {
            addCriterion("designer_name =", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameNotEqualTo(String value) {
            addCriterion("designer_name <>", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameGreaterThan(String value) {
            addCriterion("designer_name >", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameGreaterThanOrEqualTo(String value) {
            addCriterion("designer_name >=", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameLessThan(String value) {
            addCriterion("designer_name <", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameLessThanOrEqualTo(String value) {
            addCriterion("designer_name <=", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameLike(String value) {
            addCriterion("designer_name like", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameNotLike(String value) {
            addCriterion("designer_name not like", value, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameIn(List<String> values) {
            addCriterion("designer_name in", values, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameNotIn(List<String> values) {
            addCriterion("designer_name not in", values, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameBetween(String value1, String value2) {
            addCriterion("designer_name between", value1, value2, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerNameNotBetween(String value1, String value2) {
            addCriterion("designer_name not between", value1, value2, "designerName");
            return (Criteria) this;
        }

        public Criteria andDesignerPicIsNull() {
            addCriterion("designer_pic is null");
            return (Criteria) this;
        }

        public Criteria andDesignerPicIsNotNull() {
            addCriterion("designer_pic is not null");
            return (Criteria) this;
        }

        public Criteria andDesignerPicEqualTo(String value) {
            addCriterion("designer_pic =", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicNotEqualTo(String value) {
            addCriterion("designer_pic <>", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicGreaterThan(String value) {
            addCriterion("designer_pic >", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicGreaterThanOrEqualTo(String value) {
            addCriterion("designer_pic >=", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicLessThan(String value) {
            addCriterion("designer_pic <", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicLessThanOrEqualTo(String value) {
            addCriterion("designer_pic <=", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicLike(String value) {
            addCriterion("designer_pic like", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicNotLike(String value) {
            addCriterion("designer_pic not like", value, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicIn(List<String> values) {
            addCriterion("designer_pic in", values, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicNotIn(List<String> values) {
            addCriterion("designer_pic not in", values, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicBetween(String value1, String value2) {
            addCriterion("designer_pic between", value1, value2, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerPicNotBetween(String value1, String value2) {
            addCriterion("designer_pic not between", value1, value2, "designerPic");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleIsNull() {
            addCriterion("designer_title is null");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleIsNotNull() {
            addCriterion("designer_title is not null");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleEqualTo(String value) {
            addCriterion("designer_title =", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleNotEqualTo(String value) {
            addCriterion("designer_title <>", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleGreaterThan(String value) {
            addCriterion("designer_title >", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleGreaterThanOrEqualTo(String value) {
            addCriterion("designer_title >=", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleLessThan(String value) {
            addCriterion("designer_title <", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleLessThanOrEqualTo(String value) {
            addCriterion("designer_title <=", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleLike(String value) {
            addCriterion("designer_title like", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleNotLike(String value) {
            addCriterion("designer_title not like", value, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleIn(List<String> values) {
            addCriterion("designer_title in", values, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleNotIn(List<String> values) {
            addCriterion("designer_title not in", values, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleBetween(String value1, String value2) {
            addCriterion("designer_title between", value1, value2, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerTitleNotBetween(String value1, String value2) {
            addCriterion("designer_title not between", value1, value2, "designerTitle");
            return (Criteria) this;
        }

        public Criteria andDesignerDescIsNull() {
            addCriterion("designer_desc is null");
            return (Criteria) this;
        }

        public Criteria andDesignerDescIsNotNull() {
            addCriterion("designer_desc is not null");
            return (Criteria) this;
        }

        public Criteria andDesignerDescEqualTo(String value) {
            addCriterion("designer_desc =", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescNotEqualTo(String value) {
            addCriterion("designer_desc <>", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescGreaterThan(String value) {
            addCriterion("designer_desc >", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescGreaterThanOrEqualTo(String value) {
            addCriterion("designer_desc >=", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescLessThan(String value) {
            addCriterion("designer_desc <", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescLessThanOrEqualTo(String value) {
            addCriterion("designer_desc <=", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescLike(String value) {
            addCriterion("designer_desc like", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescNotLike(String value) {
            addCriterion("designer_desc not like", value, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescIn(List<String> values) {
            addCriterion("designer_desc in", values, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescNotIn(List<String> values) {
            addCriterion("designer_desc not in", values, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescBetween(String value1, String value2) {
            addCriterion("designer_desc between", value1, value2, "designerDesc");
            return (Criteria) this;
        }

        public Criteria andDesignerDescNotBetween(String value1, String value2) {
            addCriterion("designer_desc not between", value1, value2, "designerDesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}